package com.boz.picasa.domain;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Compte picasa.
 * 
 * @author jboz
 */
@XStreamAlias("account")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    private final String username;
    private final String password;
    private final String email;

    public Account(final String username, final String password, final String email) {
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getEmail() {
        return email;
    }

    @Override
    public String toString() {
        return username + "/" + password + " (" + email + ")";
    }
}
